package cn.jwelll.bxcstock.viewmodel.viewmodel

import android.databinding.BaseObservable
import android.databinding.Bindable
import android.view.View
import cn.jwelll.bxcstock.R
import com.android.databinding.library.baseAdapters.BR

class BatchDispatchModel : BaseObservable(){

    @Bindable
    var currentData: ArrayList<String>? = null
        // 生铁库,
        set(value) {
            field = value
            notifyPropertyChanged(BR.currentData)
        }
    var billCode = ""// 提单编码 ,
    var shipperName = ""// 货主名称 ,
    var deliveryAddress = ""//交货地址
        get() = if (field.isNullOrEmpty()) "暂无交货地址" else field

    @Bindable
    var checked = true
        set(value) {
            field = value
            notifyPropertyChanged(BR.checked)
        }

    private var lastId = -1
    fun toggleChecked(view: View) {
    }
}